package com.book.app.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * (Borrow)表实体类
 *
 * @author wjy
 * @since 2021-09-22 08:48:13
 */
@SuppressWarnings("serial")
@Data
@ApiModel
public class Borrow implements Serializable {
    @ApiModelProperty(hidden = true)
    @TableId
    private Integer boid;
    @ApiModelProperty(value = "读者外键",required = true,dataType = "integer",example = "1")
    private Integer sid;
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String sname;
    @ApiModelProperty(value = "图书外键",required = true,dataType = "integer",example = "1")
    private Integer bid;
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String bname;
    @ApiModelProperty(value = "借出时间",required = true,dataType = "integer",example = "2021-11-11")
    private String otime;
    @ApiModelProperty(value = "归还时间",required = true,dataType = "integer",example = "2021-11-11")
    private String itime;
    @ApiModelProperty(value = "借阅数量",required = true,dataType = "integer",example = "1")
    private Integer quantity;
    @ApiModelProperty(hidden = true)
    @TableLogic
    private Integer deleted;
    @ApiModelProperty(value = "用户外键",required = true,dataType = "integer",example = "1")
    private Integer uid;
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String uname;
    @ApiModelProperty(hidden = true)
    //0已借出、1已归还
    private Integer stat;
    //记录统计数量
    @TableField(exist = false)
    private Integer counter;

}